home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / patch / ps3c.lha / 3.0cUpdate / Install-PageStream3.0c < prev    next >
Text File  |  1994-11-01  |  7KB  |  187 lines

  1. ;PAGESTREAM 3.0c ONLINE UPDATE PATCH INSTALLATION SCRIPT
  2. ;COPYRIGHT ©1994 SOFT-LOGIK PUBLISHING CORPORATION
  3.  
  4. ;SEE IF PAGESTREAM3 AND SOFTLOGIK ARE ASSIGNED AND EVERYTHING EXISTS
  5. (set PGSdest (getassign "PageStream3" "a"))
  6. (set SLdest (getassign "SoftLogik" "a"))
  7. (if (OR (= PGSdest "") (= SLdest ""))
  8.     (abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream3 before applying this update patch.")
  9. )
  10. (set @default-dest PGSdest)
  11.     (if (<> (exists "PageStream3:PageStream3") 1)
  12. (abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3 before applying this update patch.")
  13. )
  14. (if (<> (exists "SoftLogik:Libs") 2)
  15.     (abort "The SoftLogik:Libs directory is missing. You must properly install PageStream3 before applying this update patch.")
  16. )
  17. (if (<> (exists "SoftLogik:Engines") 2)
  18.     (abort "The SoftLogik:Engines directory is missing. You must properly install PageStream3 before applying this update patch.")
  19. )
  20. (if (<> (exists "SoftLogik:Printers") 2)
  21.     (abort "The SoftLogik:Printers directory is missing. You must properly install PageStream3 before applying this update patch.")
  22. )
  23. (if (<> (exists "SoftLogik:Filters") 2)
  24.     (abort "The SoftLogik:Filters directory is missing. You must properly install PageStream3 before applying this update patch.")
  25. )
  26. (if (<> (exists "SoftLogik:Effects") 2)
  27.     (abort "The SoftLogik:Effects directory is missing. You must properly install PageStream3 before applying this update patch.")
  28. )
  29.  
  30. ;SEE WHAT THE USER WANTS TO INSTALL
  31. (set ALLflag 0)
  32. (set SMAflag 1)
  33.  
  34. (message "\n\nThis will update your hard drive installation of PageStream 3.0b to version 3.0c. It requires that PageStream 3.0b be installed on your hard drive first. If you have 3.0 or 3.0a and not 3.0b, you cannot use this patch---read the ReadMe.1st! file for other instructions.\n\nYour original PageStream3 disks will not be modified by this update.")
  35. (set install_mode
  36.     (askchoice
  37.         (prompt
  38.             "\nSelect an installation option.\n\nChoose `All' if you have a full PageStream3 installation. Choose `Smart' if you have a custom or minimum PageStream3 installation.\n")
  39.         (choices "All New and Improved 3.0c Files" "Smart Install")
  40.         (default 0)
  41.         (help
  42.             "Smart Install will check to see if a file exists before copying the new one to your hard drive. Thus, if you deleted the HP.printer driver because you didn't need it, the new one will not be installed.")
  43.     )
  44. )
  45.  
  46. ;COPY THE LHEX PROGRAM TO RAM:
  47. (copyfiles
  48.     (source "PageStream3Disk1:lhex")
  49.     (dest "ram:")
  50.     (nogauge)
  51. )
  52.  
  53. ;UPDATE LIBS
  54. (working "Installing Update Libraries...")
  55. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Libs x Libs.lha")
  56. (delete "Libs.LHA" (safe))
  57.  
  58. ;UPDATE ENGINES
  59. (working "Installing Updated Engines...")
  60. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x Engines.lha")
  61. (delete "Engines.LHA" (safe))
  62.  
  63. ;UPDATE PRINTER DRIVERS
  64. (working "Installing Updated Printer Drivers...")
  65. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/HP.printer"))
  66.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x HP.lha")
  67. )
  68. (delete "HP.LHA" (safe))
  69.  
  70. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/PostScript.printer"))
  71.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PostScript.lha")
  72. )
  73. (delete "PostScript.LHA" (safe))
  74.  
  75. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Preference.printer"))
  76.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Preference.lha")
  77. )
  78. (delete "Preference.LHA" (safe))
  79.  
  80. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Epson.printer"))
  81.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Epson.lha")
  82. )
  83. (delete "Epson.LHA" (safe))
  84.  
  85. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Fargo.printer"))
  86.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Fargo.lha")
  87. )
  88. (delete "Fargo.LHA" (safe))
  89.  
  90. ;UPDATE FILTERS
  91. (working "Installing Updated Filters...")
  92. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Filters.lha")
  93. (delete "Filters.LHA" (safe))
  94.  
  95. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/FreehandEPS.gfilter"))
  96.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Freehand.lha")
  97. )
  98. (delete "Freehand.LHA" (safe))
  99.  
  100. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PageStream2.dfilter"))
  101.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x PageStream2.lha")
  102. )
  103. (delete "PageStream2.LHA" (safe))
  104.  
  105. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/BMP.gfilter"))
  106.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x BMP.lha")
  107. )
  108. (delete "BMP.LHA" (safe))
  109.  
  110. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProDrawClip.gfilter"))
  111.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x ProDraw.lha")
  112. )
  113. (delete "ProDraw.LHA" (safe))
  114.  
  115. ;UPDATE MACROS
  116. (if (<> (exists "PageStream3:Macros") 2) (makedir "PageStream3:Macros" (infos)))
  117. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Macros x Macros.lha")
  118. (delete "Macros.LHA" (safe))
  119.  
  120. ;UPDATE PAGESTREAM3
  121. (working "Patching PageStream 3.0b to 3.0c...\n\nThis will take about one to five minutes.")
  122. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PGSpatch.LHA")
  123. (delete "PGSpatch.LHA" (safe))
  124. (run "spatch >NIL: <NIL: -oPageStream3:PageStream3.0c -pram:PageStream.pch PageStream3:PageStream3")
  125. (if (exists "PageStream3:PageStream3.0c")
  126.     (
  127.         (delete "PageStream3:PageStream3")
  128.         (rename "PageStream3:PageStream3.0c" "PageStream3:PageStream3")
  129.     )
  130. )
  131. (delete "ram:PageStream.pch" (safe))
  132.  
  133. ;UPDATE PAGELINER
  134. (if (exists "PageStream3:PageLiner")
  135.     (
  136.         (working "Patching PageLiner 2.0a to 2.0b...")
  137.         (run "ram:lhex >NIL: <NIL: -qfw=ram: x PLpatch.LHA")
  138.         (delete "PLpatch.LHA" (safe))
  139.         (run "spatch >NIL: <NIL: -oPageStream3:PageLiner2.0b -pram:PageLiner.pch PageStream3:PageLiner")
  140.         (if (exists "PageStream3:PageLiner2.0b")
  141.             (
  142.                 (delete "PageStream3:PageLiner")
  143.                 (rename "PageStream3:PageLiner2.0b" "PageStream3:PageLiner")
  144.             )
  145.         )
  146.     )
  147. )
  148. (delete "ram:PageLiner.pch" (safe))
  149.  
  150. ;INSTALL TIPS
  151. (if (<> (exists "PageStream3:Help") 2) (makedir "PageStream3:Help" (infos)))
  152. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Tips.LHA")
  153. (delete "Tips.LHA" (safe))
  154.  
  155. ;INSTALL HELP
  156. (if (exists "PageStream3:Help/PGS.HEL")
  157.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Help.LHA")
  158. )
  159. (delete "Help.LHA" (safe))
  160.  
  161. ;INSTALL FONTLISTv2ANALYZER
  162. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PageStream2.dfilter"))
  163.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x FLister.LHA")
  164. )
  165. (delete "FLister.LHA" (safe))
  166.  
  167. ;INSTALL README
  168. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  169. (delete "Read.LHA" (safe))
  170.  
  171. ;DISPLAY README (Try 3 different ways!)
  172. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  173. (delete "Read.LHA" (safe))
  174. (IF (> (run "Sys:Utilities/MultiView PageStream3:ReadMe.Now") 0)
  175.     (IF (> (run "Sys:Utilities/AmigaGuide PageStream3:ReadMe.Now") 0)
  176.         (run "More PageStream3:ReadMe.Now")
  177.     )
  178. )
  179.  
  180. ;REMOVE THE LHARC PROGRAM
  181. (delete "ram:lhex" (safe))
  182. (delete "spatch" (safe))
  183. (delete "Install-PageStream3.0c.info" (safe))
  184.  
  185. ;GEE, THAT WAS FUN
  186. (exit "PageStream 3.0c installed!")
  187.